package com.qfjy.homework.yuhaixiang;

/**
 * @author:yuhaixiang
 * @date:2022/11/1020:49
 * @version:1.0
 */
public class StrategyDemo {

    public static void main(String[] args) {
        Context context = new Context(new QuickWatching());
        System.out.println("现在洗衣机在:"+context.executeStrategy());

        context =new Context(new Dehydration());
        System.out.println("现在洗衣机在:"+context.executeStrategy());
    }


}
